import request from "@/utils/request";

//查询所有车辆类型
export function getAllTruckType(){
  return request({
    url: '/pd-base/truckType/getAll',
    method: "GET"
  })
}
//多条件分页查询车辆类型信息
export function getAllByPage(truckGoodsTypeDto){
  return request({
    url: '/pd-base/truckType/getAllByPage',
    method: "POST",
    data:truckGoodsTypeDto
  })
}
//添加车辆类型信息
export function addTruckType(truckTypeBean){
  return request({
    url: '/pd-base/truckType/addTruckType',
    method: "POST",
    data:truckTypeBean
  })
}
//修改车辆类型信息
export function updateTruckType(truckTypeBean){
  return request({
    url: '/pd-base/truckType/updateTruckType',
    method: "POST",
    data:truckTypeBean
  })
}
//删除车辆类型信息
export function deleteTruckType(truckTypeBean){
  return request({
    url: '/pd-base/truckType/deleteTruckType',
    method: "POST",
    data:truckTypeBean
  })
}
//根据编号查询车辆类型信息
export function getTrueTypeById(id){
  return request({
    url: `/pd-base/truckType/getTrueTypeById/${ id }`,
    method: "GET",
    params: {
      id
    }
  })
}
